﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

namespace DataAnalyseTool.Utilities
{
  public class WinSysOpts
  {
    protected static readonly log4net.ILog log =
    log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);


    public static bool isFileExist(string filePathName)
    {
      if (filePathName != "")
      {
        try
        {
          if (File.Exists(filePathName))
            return true;
          return false;
        }
        catch (Exception ex)
        {
          log.Error("检查文件名：" + filePathName + " 时候出现异常，异常信息为：" + ex.Message);
        }
      }
      log.Warn("文件名：" + filePathName + " 为空.");
      return false;
    }
  }
}